//
//  MainTabBarViewController.swift
//  主题切换
//
//  Created by 王帅强 on 2019/1/14.
//  Copyright © 2019 王帅强. All rights reserved.
//

import UIKit

class MainTabBarViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white

        let nav1 = UINavigationController(rootViewController: FirstViewController())
        nav1.tabBarItem = UITabBarItem(title: "首页", image: nil, selectedImage: nil)

        let nav2 = UINavigationController(rootViewController: SecondViewController())
        nav2.tabBarItem = UITabBarItem(title: "主题", image: nil, selectedImage: nil)


        self.setViewControllers([nav1, nav2], animated: true)

    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
